package com.panku.dao;

import java.util.List;

import org.jeecgframework.minidao.annotation.Arguments;
import org.springframework.stereotype.Repository;

import com.panku.entity.TbfUser;
@Repository
public interface IUserDao {

	public List<TbfUser> getAll();
	@Arguments("id")
	public TbfUser getUserById(Integer id);
	
	@Arguments("user")
	public List<TbfUser> getUserList(TbfUser user);
	
	@Arguments("user")
	public void insert(TbfUser user);
	
	@Arguments({"user","tableName"})
	public int insertUser(TbfUser user,String tableName);
	
	@Arguments("user")
	public int update(TbfUser user);
	
	@Arguments("id")
	public int deleteById(Integer id);
	
	@Arguments("user")
	public int delete(TbfUser user);
	
}
